var base64Str = 'emhhbmdzYW46MTIzNDU2';
var str1 = Buffer.from(base64Str,'base64');
var str2=str1.toString('utf-8');
var arr1=str2.split(":");
console.log("username :"+arr1[0]+"  password :"+arr1[1]);